<template>
  <div>
    <div>
      <keep-alive>
        <router-view></router-view>
      </keep-alive>
    </div>
    <van-tabbar route>
      <van-tabbar-item replace to="/index" icon="home-o">首页</van-tabbar-item>
      <van-tabbar-item replace to="/search" icon="search">找房</van-tabbar-item>
      <van-tabbar-item replace to="/news" icon="newspaper-o"
        >资讯</van-tabbar-item
      >
      <van-tabbar-item replace to="/my" icon="manager-o">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  name: 'Layout',
  props: {},

  data () {
    return {
      active: 0
    }
  }
}
</script>

<style scoped lang="less"></style>
